package factroymethod;



import simplefactroy.ICourse;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-17 08:52
 */
public class Test {
    public static void main(String[] args) {
        ICourseFactroy factory = new PythonCourseFactroy();
        ICourse course = factory.create();
        course.record();
        factory = new JavaFactroy();
        course = factory.create();
        course.record();
    }
}
